package com.stefanie.eventlistenerdemo.domain.event;

import com.stefanie.eventlistenerdemo.common.event.CommonEvent;
import com.stefanie.eventlistenerdemo.domain.dto.UserDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: stefanie-zy
 * @time: 2024/1/12-15:02
 * @description: 事件-用户
 */
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserEvent extends CommonEvent {

    /**
     * 用户名称
     */
    private UserDto userDto;

    public UserEvent(Object source, UserDto userDto) {
        super(source);
        this.userDto = userDto;
    }

}
